package top.bfylu.singleton.stat;

/**
 * 包名: top.bfylu.singleton.stat
 * 创建时间: 2022/1/29
 *
 * @author bfy
 * @version 1.0.0
 * <p>
 * 描述:uniqueInstance
 * @Email bfyjian@gmail.com
 **/
public class Singleton {
    private static Singleton uniqueInstance = new Singleton();

    private Singleton(){};

    public static Singleton getInstance() {
        return uniqueInstance;
    }

    // other useful methods here
    public String getDescription() {
        return "I'm a statically initialized Singleton!";
    }
}
